package com.aloda.api.client;

import com.aloda.api.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author aloda
 * @Date 2025/4/28 14:09
 */
@FeignClient("oj-user")
public interface UserClient {

    /**
     * 根据 id 获取用户
     * @param id 用户id
     * @return 用户实体类 User
     */
    @GetMapping("/user/inner/{id}")
    User getById(@PathVariable Long id);
}
